import { ChunkExtractor } from '@loadable/server'

import PROJECT from '../PROJECT'

const statsFile = PROJECT.BUILD_CLIENT.MANIFEST_LOADABLE
const extractor = () => new ChunkExtractor({ statsFile })

export default extractor
